//mine.js
import React from 'react';
import {Button, Toast} from 'antd-mobile';

export default class Mine extends React.Component {
    toHome = () => {
        this.props.history.push({pathname: "/Home"})
    };

    HandleToast = () =>{
        Toast.info('这是toast')
    };

    render() {
        return (
                <div>
                    {/*<a href={'#/Home'}>回到home</a>*/}
                    <Button type="primary" inline size='small' onClick={this.HandleToast}>这是toast</Button>
                    <Button type="primary" inline size="small" onClick={this.toHome}>返回Home</Button>
                </div>
        )
    }
}
